import request from '../interceptor'

/**
 * 获取功能配置
 */
export const getConfigInfo = {
  baseUrl: `/configInfo`,
  method: 'get',
  request: () =>
    request({
      url: `/configInfo`,
    }),
}

/**
 * 修改功能配置
 */
export const PostConfigInfo = {
  baseUrl: `/configInfo/{configId}`,
  method: 'put',
  request: (id: string, data: any) =>
    request({
      url: `/configInfo/${id}`,
      method: 'put',
      data,
    }),
}

/**
 * 获取中台版本
 */
export const getVersion = {
  baseUrl: `/version`,
  method: 'get',
  request: () =>
    request({
      url: `/version`,
    }),
}
